<template>
	<view>
		<view class="log">
			充值记录
		</view>
		<button class="yue" type="primary">当前余额：10000.00U</button>
		<view class="recharge-title">
			USDT收款
		</view>
		<view class="recharge-note">
			请备注：活力宝ID.如：活力宝00001
		</view>
		<view class="recharge-note">
			填写错误概不退还
		</view>
		<view class="recharge-tip">
			钱包地址
		</view>
		<view class="recharge-link">
			{{link}}
		</view>
		<view class="recharge-button">
			<view class="recharge-button-copy" @click="copyLink">
				复制链接
			</view>
			<view class="recharge-button-help">
				帮助
			</view>
		</view>
		<view class="recharge-tip">
			注：此地址只接受usdt,发送其他币种到此将不可找回。
		</view>
		<view class="recharge-note">
			完成充值上传截图
		</view>
		<view class="example-title">
			示例
		</view>
		<image class="example-image" src="../../static/index/topImage.png" mode=""></image>
		<view class="example-tip">
			示例图
		</view>
		<view class="upload">
			<image class="upload-image" v-if="uploadImage" :src="uploadImage"></image>
			<view class="upload-box" v-else @click="chooseImage">
				<view class="upload-box-text">
					+
				</view>
				<view class="upload-box-text">
					添加图片
				</view>
			</view>
		</view>
		<view class="upload-button" @click="upload">
			我充好了
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				link: 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz',
				uploadImage:''
			}
		},
		methods: {
			copyLink() {
				this.stepNum = 1;
				uni.setClipboardData({
					data: this.link
				})
			},
			chooseImage(){
				uni.chooseImage({
					count:1,
					success: (res) => {
						this.uploadImage=res.tempFilePaths[0]
					}
				})
			},
			upload(){
				uni.showModal({
					content:'上传成功，请等待客服确认！'
				})
			}
		}
	}
</script>

<style>
	.log {
		width: 690upx;
		height: 100upx;
		margin: 0 30upx;
		text-align: end;
		font-size: 28upx;
		line-height: 100upx;
	}

	.yue {
		margin: 0 30upx;
		width: 690upx;
	}

	.recharge-title {
		width: 750upx;
		margin-top: 80upx;
		text-align: center;
		font-size: 28upx;
		font-weight: bold;
	}

	.recharge-note {
		width: 750upx;
		text-align: center;
		font-size: 32upx;
		color: #FF0000;
	}

	.recharge-link {
		width: 500upx;
		margin: 10upx 30upx;
		padding: 0 65upx 80upx 65upx;
		border-bottom: 1px solid #0000FF;
		text-align: center;
		word-wrap: break-word;
		font-size: 24upx;
	}

	.recharge-button {
		width: 750upx;
		display: flex;
		margin: 30upx 0;
		justify-content: flex-end;
		align-items: center;
	}

	.recharge-button-copy {
		margin: 0 30upx;
		width: 250upx;
		height: 60upx;
		background-color: #FF0000;
		color: #FFFFFF;
		border-radius: 30upx;
		font-size: 32upx;
		line-height: 60upx;
		text-align: center;
	}

	.recharge-button-help {
		margin: 0 30upx;
		width: 150upx;
		height: 50upx;
		background-color: #0000ff;
		color: #FFFFFF;
		border-radius: 30upx;
		font-size: 32upx;
		line-height: 50upx;
		text-align: center;
	}

	.recharge-tip {
		width: 650upx;
		margin: 50upx;
		font-size: 24upx;
		color: #C3C3C3;
		text-align: center;
	}

	.example-title {
		margin: 10upx 30upx;
		width: 680upx;
		height: 80upx;
		background-color: #C3C3C3;
		padding-left: 10upx;
		line-height: 80upx;
	}

	.example-image {
		width: 650upx;
		height: 400upx;
		margin: 30upx 50upx 0 50upx;
	}

	.example-tip {
		width: 750upx;
		text-align: center;
		font-size: 28upx;
	}

	.upload {
		width: 750upx;
		height: 350upx;
		background-color: #007AFF;
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.upload-image{
		width: 350upx;
		height: 350upx;
	}

	.upload-box {
		width: 250upx;
		height: 250upx;
		margin:0 250upx;
		border: 1px dashed #FFFFFF;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.upload-box-text {
		width: 250upx;
		text-align: center;
		color: #FFFFFF;
	}

	.upload-button {
		margin: 30upx;
		width: 690upx;
		height: 80upx;
		background-color: #007AFF;
		color: #FFFFFF;
		text-align: center;
		font-size: 32upx;
		line-height: 80upx;
	}
</style>
